<ul class="main-news-list">
    <?php
    //dump($data);
    ?>
    <foreach name="data['list']" item="news">
        <li class="news-item">

            <a class="item-name" href="/news/detail?id={$news['id']}" target="_blank">
                <if condition="$news['cam_id'] eq '0'">
                    <span>[ 平台资讯 ]</span>
                    <else />
                    <span>[ 企业需求 ]</span>
                </if>
                {$news['title']}</a>
            <div class="news-info">
                <span>发布方：
                    <if condition="$news['cam_id'] eq '0'">
                        平台
                    <else />
                        <a href="/cpn/detail?id={$news['cam_id']}" target="_blank">{$news['company_name']}</a>
                    </if>
                </span>
                <span class="item-time">{$news['create_time']|strtotime|date="Y-m-d",###}</span>
            </div>
        </li>
    </foreach>
</ul>
<if condition="count($data['list']) eq 0">
    <div class="content-empty show">
        <div class="picture"></div>
        <div class="no-data">没有符合条件的相关数据</div>
    </div>
</if>